package com.kongyz.demo2.decorator;

import com.kongyz.demo2.component.Hero;

/**
 * @author kongyz
 * @date 2018/6/28 22:55
 * @Description: 1技能
 */
public class Skills_1 extends Skills {
    private String skillName;

    public Skills_1(Hero hero, String skillName) {
        super(hero);
        this.skillName = skillName;
    }

    @Override
    public void learnSkills() {
        super.learnSkills();
        System.out.println("学习了："+skillName);
    }
}
